<%@ page contentType="text/html"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="javax.ejb.*,javax.naming.*,java.rmi.*" %>
<%@ page import="jwanalytics.ejb.webhouse.*,jwanalytics.ejb.dataobjects.*,jwanalytics.web.*,javax.faces.context.*" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<f:view>
  <html>
    <head>
	  <base href="<%=basePath%>">
      <title>index.jsp</title>
      <meta http-equiv="pragma" content="no-cache">
	  <meta http-equiv="cache-control" content="no-cache">
	  <meta http-equiv="expires" content="0">    
	  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	  <meta http-equiv="description" content="This is my page">
	  <!--
	     <link rel="stylesheet" type="text/css" href="styles.css">
	  -->
    </head>
    <body>
      <h:form>
        <h2>
          JSF index page.
        </h2>
        <p>You are now on the root page of many sites which exemplify JWAnalytics usage.</p>
        
        <p><b>Sites list</b>:</p>
        
        <ul>
        	<li><a href="faces/site1.jsp">Site 1</a> explained on: <a href="http://code.google.com/p/jwanalytics/wiki/Optimisation">wiki</a></li>
        </ul>
	
		<p>Note: this page itself is not logged for web analytics purposes.  All other pages within the sites are.</p>
	
		<hr/>
	        
        <p>Active sessions so far: <%=SessionListener.getActiveSessions()%>.</p>
        
      </h:form>
    </body>
  </html>
</f:view>